package com.jinmdz.app.api.api.model.common;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 通用主键请求数据
 *
 * @author LiCongLu
 * @date 2020-01-19 11:05
 */
@ApiModel(value = "通用主键请求数据", description = "通用主键请求数据")
public class IdData extends BaseBean {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    @AnValidate(name = "主键", required = true, code = EValidateCode.NO_LESS_ZERO)
    private Integer id;

    public IdData() {

    }

    public IdData(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public IdData setId(Integer id) {
        this.id = id;
        return this;
    }
}
